﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.Diagnostics.Utils
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using System.Runtime.CompilerServices;
using UnityEngine.Bindings;

#nullable disable
namespace UnityEngine.Diagnostics
{
  /// <summary>
  ///   <para>A utility class that you can use for diagnostic purposes.</para>
  /// </summary>
  [NativeHeader("Runtime/Export/Diagnostics/DiagnosticsUtils.bindings.h")]
  public static class Utils
  {
    /// <summary>
    ///   <para>Manually causes an application crash in the specified category.</para>
    /// </summary>
    /// <param name="crashCategory"></param>
    [FreeFunction("DiagnosticsUtils_Bindings::ForceCrash", ThrowsException = true)]
    [MethodImpl(MethodImplOptions.InternalCall)]
    public static extern void ForceCrash(ForcedCrashCategory crashCategory);

    /// <summary>
    ///   <para>Manually causes an assert that outputs the specified message to the log and registers an error.</para>
    /// </summary>
    /// <param name="message"></param>
    [FreeFunction("DiagnosticsUtils_Bindings::NativeAssert")]
    [MethodImpl(MethodImplOptions.InternalCall)]
    public static extern void NativeAssert(string message);

    /// <summary>
    ///   <para>Manually causes a native error that outputs the specified message to the log and registers an error.</para>
    /// </summary>
    /// <param name="message"></param>
    [FreeFunction("DiagnosticsUtils_Bindings::NativeError")]
    [MethodImpl(MethodImplOptions.InternalCall)]
    public static extern void NativeError(string message);

    /// <summary>
    ///   <para>Manually causes a warning that outputs the specified message to the log and registers an error.</para>
    /// </summary>
    /// <param name="message"></param>
    [FreeFunction("DiagnosticsUtils_Bindings::NativeWarning")]
    [MethodImpl(MethodImplOptions.InternalCall)]
    public static extern void NativeWarning(string message);
  }
}
